package main

import (
	"fmt"
	"sync"
	"time"
)

func Read() {
	defer wg.Done()
	fmt.Println("Read start !!!")
	time.Sleep(time.Second * 2)
	fmt.Println("Read end !!!")
}

func Music() {
	defer wg.Done()
	fmt.Println("Music start !!!")
	time.Sleep(time.Second * 5)
	fmt.Println("Music end !!!")
}

var wg sync.WaitGroup

func main() {
	wg.Add(2)
	go Read()
	go Music()
	wg.Wait()
	fmt.Println("over")
}
